package com.Nuyoah.demo01.VO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
//getter和setter方法自动生成
public class UserVO {
    private Integer userId;
    private String username;
//    private String password;
    private String email;
    private int isAdmin;
//    private LocalDateTime created_at;
    private int status;

    public int getIsAdmin() {
        return this.isAdmin;
    }

    public void setIsAdmin(int isAdmin) {
        this.isAdmin = isAdmin;
    }
    
    // 兼容旧代码的方法
    public Integer getUser_id() {
        return userId;
    }
}
